<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>p6_浮动练习</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        .center {
            width: 1000px;
            margin: 0 auto;
        }
        .f1,.f2{
            overflow: hidden;
        }
        .f1>div {
            height: 376px;
            margin-bottom: 10px;
            float: left;
        }
        .f2>div {
            height: 233px;
            float: left;
        }
        .z1 {
            width: 611px;
            background-color: #e8e8e8;
            margin-right: 10px;
            position: relative;
        }
        .z2 {
            width: 375px;
            background-color: yellow;
        }
        .z3 {
            width: 366px;
            background-color: pink;
            margin-right: 20px;
        }
        .z4{
            width: 198px;
            background-color: #0aa1ed;
            margin-right: 8px;
        }
        .z4_1 {
            margin: 0;
        }
        .z1>.word {
            width: 245px;
            height: 232px;
            position: relative;
            top: 68px;
            left: 36px;
        }
        .z1>img {
            width: 318px;
            height: 319px;
            float: right;
            position: absolute;
            top: 35px;
            left: 265px;
        }
        .p1 {
            font-size: 32px;
            color:#333;
            font-weight: lighter;
        }
        .p2 {
            font-size: 12px;
            color: #666;
            font-weight: lighter;
            padding-top: 12px;
        }
        .prize {
            margin-top: 24px;
            font-size: 24px;
            color: #0aa1ed;
            font-weight: bold;
        }
        .word>button {
            display: inline-block;
            text-decoration: none;
            text-align: center;
            margin-top: 12px;
            width: 132px;
            height: 40px;
            font-size: 20px;
            color: #fff;
            background-color: #0aa1ed;
        }
        .z2>.word {
            width: 245px;
            height: 232px;
            position: relative;
            top: 39px;
            left: 25px;
        }
    </style>
</head>
<body>
<div class="main">
    <div class="center">
        <div class="f1">
            <div class="z1">
                <div class="word">
                    <p class="p1"> 灵越 燃7000系列</p>
                    <p class="p2">
                        酷睿双核i5处理器|256GB SSD| 8GB内存 <br>
                        英特尔HD显卡620含共享显卡内存
                    </p>
                    <p class="prize">¥4999.00</p>
                    <button>查看详情</button>
                </div>
                <img src="img/computer1.png">
            </div>
            <div class="z2">
                <div class="word">
                    <p class="p1">颜值 框不住</p>
                    <p class="p2">酷睿双频i5处理器|256GB SSD| 8GB内存 <br>
                       英特尔HD显卡620含共享显卡内存</p>
                    <p class="prize">¥6888.00</p>
                    <button>查看详情</button>
                </div>
                <img src="img/computer2.png">
            </div>
        </div>
        <div class="f2">
            <div class="z3"></div>
            <div class="z4"></div>
            <div class="z4"></div>
            <div class="z4 z4_1"></div>
        </div>
    </div>
</div>

</body>
</html>